﻿using ArtMath.Core.Data;
using System;

namespace ArtMath.PointCollection
{
    [Serializable]
    public class Empty : PointCollectionBase
    {
        public static readonly Empty Instance = new Empty();
        Empty()
        {

        }
        public override bool Contains(PointD pt)
        {
            return false;
        }

        public override PointD? GetNearestPoint(PointD pt)
        {
            return null;
        }

        protected override PointCollectionBase Intersect(PointCollectionBase collection)
        {
            return Instance;
        }
    }
}
